namespace Trader.Trading
{
    using System;
    using BO.Interface;
    using Interface;

    public class SellAction : ITradeAction
    {
        #region Private Member's

        private readonly DateTime date;
        private readonly IStock stock;
        private readonly int units;

        #endregion

        #region Const'

        public SellAction(IStock stock, DateTime date, int units)
        {
            this.stock = stock;
            this.date = date;
            this.units = units;
        }

        #endregion

        #region ITradeAction Members

        public IStock Stock
        {
            get { return stock; }
        }

        public int Units
        {
            get { return units; }
        }

        public DateTime Date
        {
            get { return date; }
        }

        #endregion
    }
}